<template>
    <div>
        num
        {{propA}}
        <button @click="ccc">test</button>
    </div>
</template>

<script lang="ts">
    import { Component, Vue, Prop, Emit } from 'vue-property-decorator';

    @Component
    export default class Num extends Vue {
        @Prop({
            type: Number,
            required: false
        }) propA!: number;

        @Emit('test') sendData(data?: string) { }

        public ccc() {
            this.sendData('test')
        }
    }
</script>
